{% extends "_base.html" %}


{% block  title %}资产信息{% endblock %}

{% block page-content %}


    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>资产管理</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/">主页</a>
                </li>
                <li>资产管理</a>
                </li>
                <li class="active">
                    <strong>ES节点列表</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>资产信息</h5>

                    </div>
                    <div class="ibox-content">

                          <div class="table-responsive">

                            <a href="/admin/cmdb/es/add/" class="btn btn-primary" target="_blank">
                                增加ES节点</a>
<!-- 
                            <a class="btn btn-danger" data-toggle="modal"
                               data-target="#myModal2">批量删除
                            </a>
 -->




                            <form class="form-horizontal  ">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <!-- <th width="20"><input type="checkbox" id="CheckedAll"></th> -->
                                        <th>标识名称</th>
                                        <th>所在主机</th>
                                        <th>端口</th>
                                        <th>集群名</th>
                                        <th>节点名</th>
                                        <th>动作</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    {% for   row   in   object_list %}

                                        <tr class="gradeA" id="{{ row.id }}">
                                            <!-- <td><input type="checkbox" value="{{ row.id }}"  name="id"></td> -->
                                            <td class="center"><a
                                                    href="{% url 'cmdb:eslist' %}/{{ row.id }}/">{{ row.name }}</a>
                                            </td>
                                            <td class="center">{{ row.host }}</td>
                                            <td class="center">{{ row.port }}</td>
                                            <td class="center">{{ row.cluster }}</td>
                                            <td class="center">{{ row.node }}</td>

                                            <td>
                                                <a class="btn btn-xs btn-success " href="{% url 'cmdb:eslist' %}/{{ row.id }}/" target="_blank">索引管理</a>
                                                <a class="btn btn-primary  btn-xs " href="/admin/cmdb/es/{{ row.id }}/" target="_blank">修改信息</a>
                                                <!-- <a class="btn btn-danger  btn-xs  asset_del_id"     data-toggle="modal" data-target="#myModal1">删除 </a> -->

                                            </td>
                                        </tr>
                                    {% endfor %}

                                    </tbody>

                                </table>
                            </form>


                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>


{% endblock %}


